<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> 
<%@ taglib prefix="ht" uri="http://java.sun.com/jsp/jstl/functionht" %>
<%@ include file="/page/core/common/commonvariable.jsp"%>
<button id="leftBarbtn1" class="lay-left-up btn btn-default btn-xs" onclick="leftbar.showUp()"><i class="glyphicon glyphicon-chevron-up"></i></button>
<div class="lay-left-bar" id="leftBar">
		
		<c:forEach items="${sessionScope.userMenu}"  var="menu" varStatus="idxStatus">
			<div class="lay-left-item">
				<a class="lay-left-menu  com-menu" onclick= "leftbar.toggleFoldStatus(${menu.id})" href="javascript:void(0);" menuId="${menu.id}" menLvl="1">
				<img  class="lay-left-menu-img" src="<%=pagePath%>/images/icon/${menu.icon}"/><span class="lay-left-menu-text">${menu.text}</span><img id="left_menu_fold_img_${menu.id}" class="lay-left-menu-img2" src="<%=pagePath%>/images/icon/icon_on_21.png"/></a>	
			</div>
			
			<div id="left_menu_fold_${menu.id}" name="left_menu_fold" menuId="${menu.id}" style="display: none;">
				<c:forEach items="${menu.menus}"  var="submenu" varStatus="subidxStatus">
					<div class="lay-left-item">
						<a class="lay-left-menu<c:if test="${sessionScope.subMenuId==submenu.id}"> com-active</c:if><c:if test="${sessionScope.subMenuId!=submenu.id}"> com-noactive</c:if>" onclick="leftbar.openPage(${submenu.id},'<%=path%>${submenu.url}')" href="javascript:void(0);" menuId="${submenu.id}" menLvl="2">
						<span class="lay-left-menu-text">${submenu.text}</span></a>	
					</div>
				</c:forEach>
			</div>
			<input type="hidden" id="menufold" value="${sessionScope.menufold}"/>
		</c:forEach> 
		
		
		
</div>
<button id="leftBarbtn2" class="lay-left-down btn btn-default btn-xs" onclick="leftbar.showDown()"><i class="glyphicon glyphicon-chevron-down"></i></button>


<script type="text/javascript" src="<%=pagePath%>/js/frame/leftbar.js"></script>